const {config} = require('./common')

const {apiPrefix} = config
let database = [
  {
    id: '1',
    icon: 'dashboard',
    name: '首页总览',
    route: '/dashboard',
  },
  {
    id: '1100',
    bpid: '1',
    icon: 'customer-service',
    name: '运营号管理',
  },
  {
    id: '1101',
    bpid: '1100',
    mpid: '1100',
    name: '运营号列表',
    route: '/operator',
  },
  {
    id: '1102',
    bpid: '1101',
    mpid: '-1',
    name: '运营号详情',
    route: '/operator/:id',
  },
  {
    id: '1400',
    bpid: '1',
    icon: 'team',
    name: '客户管理',
  },
  {
    id: '1401',
    bpid: '1400',
    mpid: '1400',
    name: '好友管理',
    route: '/customer',
  },
  {
    id: '1404',
    bpid: '1400',
    mpid: '1400',
    name: '重复好友明细',
    route: '/duplicateFriend',
  },
  {
    id: '1402',
    bpid: '1400',
    mpid: '1400',
    name: '群聊管理',
    route: '/chatroom',
  },
  {
    id: '1403',
    bpid: '1400',
    mpid: '1400',
    name: '群成员管理',
    route: '/chatroomMember',
  },
  {
    id: '1405',
    bpid: '1402',
    mpid: '-1',
    name: '群聊详情',
    route: '/chatroom/:id',
  },
  {
    id: '1406',
    bpid: '1401',
    mpid: '-1',
    name: '好友详情',
    route: '/customer/:id',
  },
  {
    id: '1800',
    bpid: '1',
    icon: 'message',
    name: '聊天记录管理',
  },
  {
    id: '1801',
    bpid: '1800',
    mpid: '1800',
    name: '聊天记录明细',
    route: '/personalChatRecords',
  },
  {
    id: '1802',
    bpid: '1800',
    mpid: '1800',
    name: '优质聊天内容',
    route: '/highQualityChatRecord',
  },
  {
    id: '1500',
    bpid: '1',
    icon: 'chrome',
    name: '朋友圈管理',
  },
  {
    id: '1501',
    bpid: '1500',
    mpid: '1500',
    name: '好友朋友圈',
    route: '/customerFriendCircle',
  },
  {
    id: '1502',
    bpid: '1500',
    mpid: '1500',
    name: '优质朋友圈',
    route: '/highQualityFriendCircle',
  },
  {
    id: '1503',
    bpid: '1500',
    mpid: '1500',
    name: '运营号朋友圈',
    route: '/operatorFriendCircle',
  },
  {
    id: '1900',
    bpid: '1',
    icon: 'pay-circle',
    name: '平台资金管理',
  },
  {
    id: '1901',
    bpid: '1900',
    mpid: '1900',
    name: '资金记录',
    route: '/fundRecords',
  },
  {
    id: '1600',
    bpid: '1',
    icon: 'safety',
    name: '质检风控管理',
  },
  {
    id: '1601',
    bpid: '1600',
    mpid: '1600',
    name: '风控列表',
    route: '/riskControl',
  },
  {
    id: '1602',
    bpid: '1600',
    mpid: '1600',
    name: '运营号统计',
    route: '/riskControlOperator',
  },
  {
    id: '2000',
    bpid: '1',
    icon: 'bar-chart',
    name: '统计分析',
  },
  {
    id: '2001',
    bpid: '2000',
    mpid: '2000',
    name: '进粉统计',
    route: '/friendStatistics',
  },
  {
    id: '2002',
    bpid: '2000',
    mpid: '2000',
    name: '朋友圈统计',
    route: '/statisticsOfFriendCircle',
  },
  {
    id: "2003",
    bpid: "2000",
    mpid: "2000",
    name: "会话统计",
    route: "/statisticsOfDialogue",
  },
  {
    id: "2100",
    bpid: '1',
    icon: 'line-chart',
    name: "业绩分析",
  },
  {
    id: '2101',
    bpid: "2100",
    mpid: "2100",
    name: "按微信号统计",
    route: '/performancesOfWxAccount',
  },
  {
    id: "2102",
    bpid: "2100",
    mpid: "2100",
    name: "按员工统计",
    route: "/performancesOfEmployee",
  },
  {
    id: "2103",
    bpid: "2100",
    mpid: "2100",
    name: "按部门统计",
    route: "/performancesOfDepartment",
  },
  {
    id: "2104",
    bpid: "2100",
    mpid: "2100",
    name: "综合分析统计",
    route: "/performancesOfComposite",
  },
  {
    id: '1700',
    bpid: '1',
    icon: 'shopping-cart',
    name: '订单管理',
  },
  {
    id: '1714',
    bpid: '1700',
    mpid: '-1',
    name: '创建订单',
    route: '/orderForm/:id',
  },
  {
    id: '1701',
    bpid: '1700',
    mpid: '1700',
    name: '全部订单',
    route: '/orders',
  },
  {
    id: '1702',
    bpid: '1700',
    mpid: '1700',
    name: '待审核订单',
    route: '/auditWaitOrder',
  },
  {
    id: '1703',
    bpid: '1700',
    mpid: '1700',
    name: '审核不通过订单',
    route: '/auditFailedOrder',
  },
  {
    id: '1704',
    bpid: '1700',
    mpid: '1700',
    name: '审核通过待发货订单',
    route: '/auditAndDispatchOrder',
  },
  {
    id: '1705',
    bpid: '1700',
    mpid: '1700',
    name: '已发货订单',
    route: '/shippedOrder',
  },
  {
    id: '1706',
    bpid: '1700',
    mpid: '1700',
    name: '已签收订单',
    route: '/signedOrder',
  },
  {
    id: '1707',
    bpid: '1700',
    mpid: '1700',
    name: '退回中订单',
    route: '/returnOrder',
  },
  {
    id: '1708',
    bpid: '1700',
    mpid: '1700',
    name: '退回签收订单',
    route: '/returnReceiptOrder',
  },
  {
    id: '1709',
    bpid: '1700',
    mpid: '1700',
    name: '已取消订单',
    route: '/cancelledOrder',
  },
  {
    id: '1710',
    bpid: '1700',
    mpid: '1700',
    name: '问题订单(3)',
    route: '/problemOrder',
  },
  {
    id: '1711',
    bpid: '1700',
    mpid: '1700',
    name: '业绩订单',
    route: '/performanceOrder',
  },
  {
    id: '1712',
    bpid: '1700',
    mpid: '1700',
    name: '订单日志',
    route: '/orderLog',
  },
  {
    id: '1713',
    bpid: '1700',
    mpid: '1700',
    name: '已发货商品查询',
    route: '/shippedGoods',
  },
  {
    id: '1300',
    bpid: '1',
    icon: 'tablet',
    name: '设备管理',
  },
  {
    id: '1301',
    bpid: '1300',
    mpid: '1300',
    name: '手机管理',
    route: '/mobile',
  },
  {
    id: '1200',
    bpid: '1',
    icon: 'setting',
    name: '系统应用',
  },
  {
    id: '1201',
    bpid: '1200',
    mpid: '1200',
    name: '商品管理',
    route: '/goods',
  }, {
    id: '1202',
    bpid: '1200',
    mpid: '1200',
    name: '数据字典',
    route: '/dataDictionary',
  }, {
    id: "1203",
    bpid: "1200",
    mpid: "1200",
    name: "微信权限",
    route: "/wxControl",
  },
  {
    id: '1000',
    bpid: '1',
    icon: 'appstore-o',
    name: '公司架构',
  },
  {
    id: '1001',
    bpid: '1000',
    mpid: '1000',
    name: '员工管理',
    route: '/employee',
  },
  {
    id: '1002',
    bpid: '1000',
    mpid: '1000',
    name: '部门管理',
    route: '/department',
  },
  {
    id: '1003',
    bpid: '1000',
    mpid: '1000',
    name: '角色管理',
    route: '/role',
  },
  {
    id: '1004',
    bpid: '1000',
    mpid: '1000',
    name: '权限设置',
    route: '/permission',
  },
]

module.exports = {

  [`GET ${apiPrefix}/menus`] (req, res) {
    res.status(200).json({code: 0, data: database})
  },
}
